package com.engine.ld.functions.sap.kccx;

public class ZMM_INVENTORYINFO_QUERYProxy implements ZMM_INVENTORYINFO_QUERY_PortType {
  private String _endpoint = null;
  private ZMM_INVENTORYINFO_QUERY_PortType zMM_INVENTORYINFO_QUERY_PortType = null;

  public ZMM_INVENTORYINFO_QUERYProxy() {
    _initZMM_INVENTORYINFO_QUERYProxy();
  }

  public ZMM_INVENTORYINFO_QUERYProxy(String endpoint) {
    _endpoint = endpoint;
    _initZMM_INVENTORYINFO_QUERYProxy();
  }

  private void _initZMM_INVENTORYINFO_QUERYProxy() {
    try {
      zMM_INVENTORYINFO_QUERY_PortType = (new ZMM_INVENTORYINFO_QUERY_ServiceLocator()).getZMM_INVENTORYINFO_QUERY();
      if (zMM_INVENTORYINFO_QUERY_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)zMM_INVENTORYINFO_QUERY_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)zMM_INVENTORYINFO_QUERY_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }

    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }

  public String getEndpoint() {
    return _endpoint;
  }

  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (zMM_INVENTORYINFO_QUERY_PortType != null)
      ((javax.xml.rpc.Stub)zMM_INVENTORYINFO_QUERY_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

  }

  public ZMM_INVENTORYINFO_QUERY_PortType getZMM_INVENTORYINFO_QUERY_PortType() {
    if (zMM_INVENTORYINFO_QUERY_PortType == null)
      _initZMM_INVENTORYINFO_QUERYProxy();
    return zMM_INVENTORYINFO_QUERY_PortType;
  }

  public String ZMM_INVENTORYINFO_QUERY(String i_DATA) throws java.rmi.RemoteException{
    if (zMM_INVENTORYINFO_QUERY_PortType == null)
      _initZMM_INVENTORYINFO_QUERYProxy();
    return zMM_INVENTORYINFO_QUERY_PortType.ZMM_INVENTORYINFO_QUERY(i_DATA);
  }


}
